//
//  MJRefreshConst.swift
//  OC-Swift
//
//  Created by 陆文宇 on 2017/2/14.
//  Copyright © 2017年 陆文宇. All rights reserved.
//

import UIKit

func MJRefreshColor(r: CGFloat, g: CGFloat, b: CGFloat) -> UIColor {
    return UIColor(red: r / 255, green: g / 255, blue: b / 255, alpha: 1)
}

let MJRefreshLabelTextColor: UIColor = MJRefreshColor(r: 90, g: 90, b: 90)
let MJRefreshLabelFont: UIFont = UIFont.boldSystemFont(ofSize: 14)

let MJRefreshLabelLeftInset: CGFloat = 25
let MJRefreshHeaderHeight: CGFloat = 54
let MJRefreshFooterHeight: CGFloat = 44
let MJRefreshFastAnimationDuration: TimeInterval = 0.25
let MJRefreshSlowAnimationDuration: TimeInterval = 0.4

let MJRefreshKeyPathContentOffset = #keyPath(UIScrollView.contentOffset)
let MJRefreshKeyPathContentInset = #keyPath(UIScrollView.contentInset)
let MJRefreshKeyPathContentSize = #keyPath(UIScrollView.contentSize)
let MJRefreshKeyPathPanState = #keyPath(UIPanGestureRecognizer.state)

let MJRefreshHeaderLastUpdatedTimeKey = "MJRefreshHeaderLastUpdatedTimeKey"

let MJRefreshHeaderIdleText = "MJRefreshHeaderIdleText"
let MJRefreshHeaderPullingText = "MJRefreshHeaderPullingText"
let MJRefreshHeaderRefreshingText = "MJRefreshHeaderRefreshingText"

let MJRefreshAutoFooterIdleText = "MJRefreshAutoFooterIdleText"
let MJRefreshAutoFooterRefreshingText = "MJRefreshAutoFooterRefreshingText"
let MJRefreshAutoFooterNoMoreDataText = "MJRefreshAutoFooterNoMoreDataText"

let MJRefreshBackFooterIdleText = "MJRefreshBackFooterIdleText"
let MJRefreshBackFooterPullingText = "MJRefreshBackFooterPullingText"
let MJRefreshBackFooterRefreshingText = "MJRefreshBackFooterRefreshingText"
let MJRefreshBackFooterNoMoreDataText = "MJRefreshBackFooterNoMoreDataText"

let MJRefreshHeaderLastTimeText = "MJRefreshHeaderLastTimeText"
let MJRefreshHeaderDateTodayText = "MJRefreshHeaderDateTodayText"
let MJRefreshHeaderNoneLastDateText = "MJRefreshHeaderNoneLastDateText"
